package com.ssyx.activity.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssyx.model.activity.CouponInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author 34901
* @description 针对表【coupon_info(优惠券信息)】的数据库操作Mapper
* @createDate 2024-05-05 21:13:41
* @Entity com.ssyx.activity.pojo.CouponInfo
*/
@Repository
public interface CouponInfoMapper extends BaseMapper<CouponInfo> {

    //根据skuId,userId,categoryId,获取优惠券信息
    List<CouponInfo> findCouponInfo(@Param("skuId")Long skuId, @Param("userId")Long userId, @Param("categoryId")Long categoryId);

    //获取全部用户优惠券(coupon_use,coupon_info)
    List<CouponInfo> selectCartCouponInfoList(@Param("userId")Long userId);
}




